package com.nengchuan.eic.nceconomy.dao;

import com.nengchuan.eic.nceconomy.entity.po.ExcelSheet;
import com.nengchuan.eic.nceconomy.entity.po.TemplateSheet;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author luoping
 * @since 2020-04-23
 */
@Repository
public interface TemplateSheetMapper extends BaseMapper<TemplateSheet> {
    Long getBySheetName(@Param("sheetName") String sheetName);


    /**
     * 判断该sheet是否是第一张sheet表
     * @return
     */
    TemplateSheet judgeSheetByIdIsFisrt(@Param("templateId") Long templateId);

    List<String> getCategoryBySheetName(@Param("sheetName") String sheetName);
}
